package cn.com.sparkle.paxos.stablestorage;

import java.util.LinkedList;
import java.util.concurrent.Callable;

public final class BufferPackage {
	byte[] buff;
	LinkedList<Callable<Object>> callAbleList = new LinkedList<Callable<Object>>();
	int used = 0;

	BufferPackage(byte[] buff) {
		this.buff = buff;
	}

	public byte[] getBuff() {
		return buff;
	}

	public void setBuff(byte[] buff) {
		this.buff = buff;
	}

	public LinkedList<Callable<Object>> getCallAbleList() {
		return callAbleList;
	}

	public void setCallAbleList(LinkedList<Callable<Object>> callAbleList) {
		this.callAbleList = callAbleList;
	}

	public int getUsed() {
		return used;
	}

	public void setUsed(int used) {
		this.used = used;
	}
}